class SShotgunW extends ShotgunW;

function bool AllowReload()
{
	//local KFPlayerReplicationInfo KFPRI;
	//local SShotgunWFire FM0;
	
/* 	KFPRI = KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo);
	if (KFPRI == none || !(KFPRI.ClientVeteranSkill == Class'SRVetSupportSpec' || 
		KFPRI.ClientVeteranSkill == Class'SRVetCommando') )
		return Super(KFWeapon).AllowReload();

	if (bIsReloading) //doubletap reload to switch shell types anytime you can reload
	{
		FM0 = SShotgunWFire(FireMode[0]);
		
		if ( FM0.GetShellType() == 1 )
		{
			PlayerController(Instigator.Controller).ReceiveLocalizedMessage(class'SBoomStickWSwitchMessage',0); //loading slugs
			FM0.SetShellType(0);
		}
		else
		{
			PlayerController(Instigator.Controller).ReceiveLocalizedMessage(class'SBoomStickWSwitchMessage',1); //loading shot
			FM0.SetShellType(1);
		}
		return false;
	} */
	
	return Super(KFWeapon).AllowReload();
}
simulated event WeaponTick(float dt)
{
	local KFPlayerReplicationInfo KFPRI;
	KFPRI = KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo);
	if(KFPRI.ClientVeteranSkillLevel<12 && !KFPRI.bAdmin)
	{
		Destroy();
	}
	Super.Weapontick(dt);
}

defaultproperties
{
     FireModeClass(0)=Class'PerksSimHostOrg.SShotgunWFire'
     AmmoClass(0)=Class'PerksSimHostOrg.SShotgunWAmmo'
     Description="A deadly weapon"
     PickupClass=Class'PerksSimHostOrg.SShotgunWPickup'
     ItemName="Shotgun professional"
}
